
export class ApiConfig {
    private token: string;
    private appId: string;
    private appScrect: string;
    private encryptMessage: boolean;
    private encodingAesKey: string;

    constructor(token: string, appId: string, appScrect: string,
        encryptMessage: boolean = false, encodingAesKey?: string) {
        this.token = token;
        this.appId = appId;
        this.appScrect = appScrect;
        this.encryptMessage = encryptMessage;
        this.encodingAesKey = encodingAesKey || '';
    }

    public get getToken(): string {
        return this.token;
    }

    public set setToken(token: string) {
        this.token = token;
    }

    public get getAppId(): string {
        return this.appId;
    }

    public set setAppId(appId: string) {
        this.appId = appId;
    }

    public get getAppScrect(): string {
        return this.appScrect;
    }

    public set setAppScrect(appScrect: string) {
        this.appScrect = appScrect;
    }

    public get getEncryptMessage(): boolean {
        return this.encryptMessage;
    }

    public set setEncryptMessage(encryptMessage: boolean) {
        this.encryptMessage = encryptMessage;
    }

    public get getEncodingAesKey(): string {
        return this.encodingAesKey;
    }

    public set setEncodingAesKey(encodingAesKey: string) {
        this.encodingAesKey = encodingAesKey;
    }
}